package com.yycwxt.modules.admin.file;

import com.yycwxt.common.BaseService;
import com.yycwxt.domain.File;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class FileService extends BaseService<FileMapper, File> {
    private final FileMapper fileMapper;

    public FileService(FileMapper fileMapper) {
        this.fileMapper = fileMapper;
    }

    public int updateFileStatus(){
        return fileMapper.updateFileStatus();
    }

    public List<String> getsaleurl(){
        return fileMapper.getsaleurl();
    }
}
